<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{qualificationClassList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="moduleName" value="资质分类管理"></f:viewParam>
	   	<f:viewParam name="qualificationClassName" value="#{qualificationClassList.parameterValues['qualificationClassName']}"></f:viewParam>
	   	<f:viewParam name="deptID" value="#{qualificationClassList.parameterValues['deptID']}"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<div style="height:50px;margin-left:10px">				
				<p:outputLabel value="资质类别名称："></p:outputLabel>				
				<p:inputText value="#{qualificationClassList.parameterValues['qualificationClassName']}"></p:inputText>
				<p:outputLabel value="主管部门："></p:outputLabel>				
				<p:selectOneMenu style="position: relative;top: 8px;" value="#{qualificationClassList.parameterValues['deptID']}">
								<f:selectItem itemLabel="请选择" itemValue="#{null}" />
								<f:selectItems  value="#{serviceDepartmentList.resultList}" var="_dept" itemLabel="#{_dept.cnname}" itemValue="#{_dept.id}"/>
				</p:selectOneMenu>
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"   action="QualificationClassList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="QualificationClassList.xhtml"></p:button>
				</div>		
				<div class="clearbt"></div>
			</div>
			<p:panel id="searchResult">
				<f:facet name="header">资质分类管理</f:facet>
				<p:dataTable value="#{qualificationClassList.resultList}" var="_qualificationClass">				
					
					<p:column>
						<f:facet name="header">资质类别名称</f:facet>
						#{_qualificationClass.name}
					</p:column>
					
					<ui:remove>
						<p:column>
							<f:facet name="header">所属行业</f:facet>
							#{_qualificationClass.sectorNames}
						</p:column>
					</ui:remove>
					
					<p:column>
						<f:facet name="header">主管部门</f:facet>
						#{_qualificationClass.auditDepartment.cnname}
					</p:column>
					
					<p:column style="text-align: center;width:100px">
						<f:facet name="header">操作</f:facet>
						<p:button value="编辑" outcome="QualificationClassEdit.xhtml">
							<f:param name="qualificationClassId" value="#{_qualificationClass.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{qualificationClassList}" />
			</ui:include>
			
		</h:form>
		
		<p:button href="QualificationClassEdit.xhtml" value="新增资质大类"></p:button>
      
   	</ui:define>
</ui:composition>
